import request from "@/utils/request";

//登录
export function login(data){
    return request( {
        url: '/user/login',
        method: 'post',
        data:data
    })
}


//查用户
export function findUser(params){
    return request( {
        url: '/user/list',
        method: 'get',
        params
    })
}

//批量删除
export function delBatch(query){
    return request( {
        url: '/user/del/batch',
        method: 'get',
        data:query
    })
}
//添加用户
export function addUser(data){
    return request( {
        url: '/user/add',
        method: 'post',
        data
    })
}